package com.dycong.common.function;

/**
 * Created by yu on 15-7-20.
 */
@FunctionalInterface
public interface ThrewRunnable extends Runnable{

    default void run(){
        try{
            threwRun();
        }catch (Throwable e){
            throw new RuntimeException(e);
        }
    }

    void threwRun() throws Throwable;
}
